package com.thundern.tdcrawler.web.interceptor;

import org.springframework.web.servlet.HandlerMapping;
import org.springframework.web.servlet.handler.HandlerInterceptorAdapter;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * Created by Administrator on 2015/11/17.
 */
public class CommonInterceptor extends HandlerInterceptorAdapter {

    @Override
    public boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler) throws Exception {
        String ss = (String)request.getParameter(HandlerMapping.BEST_MATCHING_PATTERN_ATTRIBUTE);

        System.out.println("bestMaping is " + ss);





        return true;



    }

}
